<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/pages/jsp/common/head.jsp"%><%
	currentTab	= "listAccount";
%><div class="wrapnme">
<!--citeLeft-->
    <%@ include file="/pages/jsp/common/left.jsp"%>
    <!--citeLeft结束-->    
    <!--sideRight-->
    <div class="sideRight">
		<!--title-->
        <div class="Right_title">
        	贷款信息添加
        </div>
        <!--title结束-->
        
        <!--content-->
        <div class="content">
        	<a href="<%=host%>/account.do?action=addAccount"><img src="<%=host%>/images/add16.png" alt="添加机构" /></a>
        	<table width="100%" border="1" cellspacing="0" class="tablesorter" >
        		<tr>
        			<th>用户名</th><th>机构类型</th><th>机构名称</th><th>分机号</th><th>联系电话</th><th>实名认证</th><th>营业执照认证</th><th></th>
        		</tr>
	        	<c:if test="${not empty list}">
		        	<c:forEach var="account" items="${list}">
		        		<tr>
		        			<td>${account.username}</td>
		        			<td><c:if test="${account.type == 1}">管理员</c:if><c:if test="${account.type == 2}">个人</c:if><c:if test="${account.type == 3}">企业</c:if></td>
		        			<td>${account.name}</td>
		        			<td>${account.ext}</td>
		        			<td>${account.phone}</td>
		        			<td>${account.isCert == 1 ? "已认证" : "未认证"}</td>
		        			<td>${account.isBusinessLicense == 1 ? "已认证" : "未认证"}</td>
		        			<td>
		        				<c:if test="${account.type != 1}">
		        					<a href="<%=host%>/account.do?action=modify&username=${account.username}"><img src="<%=host%>/images/configure16.png" alt="修改" /></a>
		        					&nbsp;&nbsp;
		        					<a href="<%=host%>/account.do?action=delete&username=${account.username}"><img src="<%=host%>/images/delete16.png" alt="删除" /></a>
		        				</c:if>
		        			</td>
		        		</tr>	
		        	</c:forEach>
		        </c:if>
		        <c:if test="${empty list}">
		        </c:if>
	        </table>
 		</div>
        <!-- content结束-->
</div>
 <!--sideRight结束-->
 <%@ include file="/pages/jsp/common/footer.jsp"%>
